function lss = Levelset_to_Image(fn , lss, w)
    
    if nargin >1 
        if nargin==3,
            lss   =    cv.warpAffine(lss, w);   
        end    
        
        img = zeros(size(lss));
        img(lss<0) = 255;
        imwrite(img,fn);
        lss = img;
    else
        img = rgb2gray(imread(fn));
        lss  = zeros(size(img))+4;
        lss(img>128) = -4;
    end

end

